package com.gylang.mail.controller;

import com.gylang.common.model.mail.TemplateMailBean;
import com.gylang.mail.VO.Result;
import com.gylang.mail.service.SendMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gylang,
 * @data 2019/11/25 22:19,
 * @DESC
 */
@RestController
@RequestMapping("mail")
public class SendMailController {

    @Autowired
    private SendMailService sendMailService;

    public Result sendVerifyCode(TemplateMailBean templateMailBean) {

        sendMailService.templateMail(templateMailBean);
        return Result.success("");
    }
}
